package com.golookon.entity;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;



@SuppressWarnings("serial")
@Entity
@Table(name = "menu_item")
public class MenuItem extends BaseEntity{

	@Column(name = "name")
	private String name;
	@Column(name = "price")
	private String price;
	@Column(name = "category")
	private String category;
	
    @JoinColumn(name="menu",referencedColumnName="id")
    @ManyToOne	
    private Menu menu;


	public Menu getMenu() {
		return menu;
	}

	public void setMenu(Menu menu) {
		this.menu = menu;
	}

	public String getCategory() {
		return category;
	}

	public void setCategory(String category) {
		this.category = category;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getPrice() {
		return price;
	}

	public void setPrice(String price) {
		this.price = price;
	}

	public MenuItem() {
		// TODO Auto-generated constructor stub
	}

}
